package com.micro.feign.rpc;

import com.micro.feign.hystrix.ClientRemoteHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @program: micro-service
 * @description: 远程服务调用接口
 * @author: Lefnmg
 * @create: 2018-12-09 12:10
 **/
@FeignClient(name = "client",fallback = ClientRemoteHystrix.class)
public interface RpcClient {
    /**
     * feign 测试方法
     * @return
     */
    @PostMapping("/feign")
    String getPort();
}
